﻿Imports System.Windows.Forms
Imports System.IO

Public Class ChooseRollout
    Public SelectedGroupPath As String
    Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click
        Me.DialogResult = System.Windows.Forms.DialogResult.OK
        Me.Close()
    End Sub

    Private Sub Cancel_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel_Button.Click
        Me.DialogResult = System.Windows.Forms.DialogResult.Cancel
        Me.Close()
    End Sub

    Private Sub ChooseRollout_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        For Each item In Directory.GetFiles(SelectedGroupPath, "*.rar")
            Dim FileInfor As New FileInfo(item)
            ListBox1.Items.Add(FileInfor.Name)
        Next
    End Sub

    Private Sub ListBox1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ListBox1.SelectedIndexChanged

    End Sub
End Class
